package org.iks.user.config;

import io.github.taikonaut3.virtue.config.config.RegistryConfig;
import io.github.taikonaut3.virtue.config.config.ServerConfig;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import static io.github.taikonaut3.virtue.common.constant.Components.Protocol.VIRTUE;

/**
 * @Author WenBo Zhou
 * @Date 2024/3/11 15:39
 */
@Configuration
public class VirtueConfig {

    @Bean
    public RegistryConfig nacosRegistryConfig() {
        return new RegistryConfig("nacos://127.0.0.1:8848");
    }

    @Bean
    public ServerConfig virtueServerConfig() {
        return new ServerConfig(VIRTUE, 2666);
    }
}
